package com.iot.ic.dao;

import com.iot.ic.model.IllegalResult;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface IllegalResultMapper {
    int deleteByPrimaryKey(Integer illegalResultId);

    int insert(IllegalResult record);

    int insertSelective(IllegalResult record);

    IllegalResult selectByPrimaryKey(Integer illegalResultId);

    int updateByPrimaryKeySelective(IllegalResult record);

    int updateByPrimaryKey(IllegalResult record);

    List<Map<String,Object>> selectIllegalResultList(@Param("count") int count,@Param("teamId")int teamId,
    		@Param("startTime") String startTime,  @Param("endTime") String endTime);
    
    List<IllegalResult> selectIllegalResultListByScenes(int scenesResultId);

    List<IllegalResult>selectIllegalResultByStadium(int scenesResultId);
    
    int deleteIllegalResult(int illegalResultId);
    
    Map<String,Object> selectStadiumScenesByIllegal(int illegalResultId);
    
    int deleteIllegalResultByScenesResult(Integer scenesResultId);
    
    int addIllegalResultBatch(List<IllegalResult> record);
    
}